﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TileEngine.items;

namespace TileEngine.recipes
{
    class Recipe
    {
        public List<Ingredient> ingredients = new List<Ingredient>();
        public Ingredient output;
        public Type tool;
        public Recipe(Ingredient output,Type tool, params Ingredient[] ingredients)
        {
            this.output = output;
            this.tool = tool;
            for (int i = 0; i < ingredients.Length; i++)
            {
                this.ingredients.Add(ingredients[i]);
            }
        }
        public bool isContains(Type item)
        {
            for (int i = 0; i < ingredients.Count; i++)
            {
                if (ingredients[i].item == item)
                {
                    return true;
                }
            }
            return false;
        }
    }
}
